import request from '@/utils/request'

export function listDaList(query) {
  return request({
    url: '/archive/supervisionDa/list',
    method: 'get',
    params: query
  })
}
export function listHdList(query) {
  return request({
    url: '/archive/supervisionDa/hdList',
    method: 'get',
    params: query
  })
}
export function deleteDa(id) {
  return request({
    url: '/archive/supervisionDa/'+id,
    method: 'delete'
  })
}
export function getUserMessage() {
  return request({
    url: '/archive/supervision/getUserMessage',
    method: 'get'
  })
}
export function addSupervision(data) {
  return request({
    url: '/archive/supervision',
    method: 'post',
    data:data
  })
}

// 上传文件
export function uploadFile(data) {
  return request({
    url: '/archive/supervisionFile/upload',
    method: 'post',
    data: data
  })
}

// 文件列表
export function uploadFileList(query) {
  return request({
    url: '/archive/supervisionFile/list',
    method: 'get',
    params: query
  })
}

// 文件删除
export function deleteFile(id) {
  return request({
    url: '/archive/supervisionFile/'+id,
    method: 'delete'
  })
}

// 获取组卷下面的组件档案
export function daList(query) {
  return request({
    url: '/archive/supervisionDa/daList',
    method: 'get',
    params: query
  })
}
